<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="top">
    <div class="supplier" style="display: block">
        <label>供应商</label>
        <select id="sid">
            <option value="1" id="a">as</option>
            <option value="2" id="a">asas</option>
            <option value="3" id="a">sssssd</option>
        </select>
    </div>
    <div class="item" style="display: block">
        <label>商品</label>
        <select>
            <option>as</option>
            <option>asas</option>
            <option>sssssd</option>
        </select>
    </div>
    <div class="price"style="display: block">
        <label>单价</label>
        <input placeholder="单价">
    </div>
    <button onclick="f()" type="button">提交</button>
</div>



</body>
<script src="../js/jquery.min.js"></script>
<script>
    function f() {
        console.log($("#a").text());
        console.log($("#a").attr("value"))

    }
</script>
</html>